import axios from "./config";
//定义请求接口
export const loginApi = (username, password) =>
  axios.post("/users/register", { username, password });
//获取验证码
export const getCaptchaApi = () => axios.get("/users/getCaptcha");
//校验验证码
export const verifyCaptcha = () =>
  axios.get("/users/verifyCaptcha", {
    params: {
      captcha,
    },
  });
